package com.ujoku.dao.impl;

import com.labillusion.core.database.base.mybatis.dao.impl.BaseDaoImpl;
import com.ujoku.dao.OrderItemDao;
import com.ujoku.domain.OrderItem;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by Andy.Lian on 2014/11/4.
 */
@Repository
public class OrderItemDaoImpl extends BaseDaoImpl<OrderItem> implements OrderItemDao<OrderItem> {
    @Override
    public List<OrderItem> selectCellarSellRecord(Map<String,Object> query){
        return sqlSessionTemplate.selectList(getSqlName("selectOrderItemByMyListItem"), query);
    }

    @Override
    public int selectSalesCount(Map<String,Object> query){
        return sqlSessionTemplate.selectOne(getSqlName("selectCountByMyListItem"), query);
    }
}
